package com.dragonwu.model;

import com.dragonwu.entity.SysMenu;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

/**
 * 登录结果
 * @author DragonWu
 * @since 2022-10-11 8:38
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResult {
    /*
    登录成功的token,来自authorization-server
     */
    private String token;

    /*
    该用户的菜单数据
     */
    private List<SysMenu> menus;

    /*
    该用户的权限数据
     */
    private List<SimpleGrantedAuthority> authorities;
}
